package photogcalc.calculators;

import java.util.Enumeration;
import photogcalc.common.ISOValue;
import photogcalc.util.Settings;

/**
 *
 * @author aokkonen
 */
public class GnModel extends CalculatorModel {

    public GnModel(Settings settings) {
        super(settings);
    }

    public ISOValue getISOValueByString(String str) {
        for (Enumeration iso = getISOs().elements(); iso.hasMoreElements();) {
            ISOValue val = (ISOValue) iso.nextElement();
            if (val.toString().equals(str))
                return val;
        }

        return null;
    }
}
